package com.snowfield.lb47.lbconfig.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * HTTP检测方法对象 config_http_checkmethod
 *
 * @author snowfield
 * @date 2024-05-28
 */
public class HttpCheckMethod extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 标识ID
     */
    private Long id;

    /**
     * 检测方法名称
     */
    @Excel(name = "检测方法名称")
    private String methodName;

    /**
     * 是否https（Y是 N否）
     */
    @Excel(name = "是否https", readConverterExp = "1=是,0=否")
    private String https;

    /**
     * 服务器名称标识
     */
    @Excel(name = "服务器名称标识")
    private String sni;

    /**
     * http method(GET,POST,PUT,DELETE等)
     */
    @Excel(name = "http method(GET,POST,PUT,DELETE等)")
    private String httpMeth;

    /**
     * 请求路径
     */
    @Excel(name = "请求路径")
    private String uri;

    /**
     * http协议版本
     */
    @Excel(name = "http协议版本")
    private String httpVer;

    /**
     * 期望响期望类型，responseCode:响应码，responseContent：响应内容
     */
    @Excel(name = "期望类型")
    private String expectType;

    /**
     * 期望响应码,多个间用,分开
     */
    @Excel(name = "期望响应码,多个间用,分开")
    private String expectStatus;

    /**
     * 期望响应内容
     */
    @Excel(name = "期望响应内容")
    private String expectContent;

    /**
     * 状态（1正常 0停用）
     */
    @Excel(name = "状态", readConverterExp = "1=正常,0=停用")
    private String status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setHttps(String https) {
        this.https = https;
    }

    public String getHttps() {
        return https;
    }

    public void setSni(String sni) {
        this.sni = sni;
    }

    public String getSni() {
        return sni;
    }

    public void setHttpMeth(String httpMeth) {
        this.httpMeth = httpMeth;
    }

    public String getHttpMeth() {
        return httpMeth;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getUri() {
        return uri;
    }

    public void setHttpVer(String httpVer) {
        this.httpVer = httpVer;
    }

    public String getHttpVer() {
        return httpVer;
    }

    public String getExpectType() {
        return expectType;
    }

    public void setExpectType(String expectType) {
        this.expectType = expectType;
    }

    public void setExpectStatus(String expectStatus) {
        this.expectStatus = expectStatus;
    }

    public String getExpectStatus() {
        return expectStatus;
    }

    public void setExpectContent(String expectContent) {
        this.expectContent = expectContent;
    }

    public String getExpectContent() {
        return expectContent;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return "HttpCheckMethod{" +
                "id=" + id +
                ", methodName='" + methodName + '\'' +
                ", https='" + https + '\'' +
                ", sni='" + sni + '\'' +
                ", httpMeth='" + httpMeth + '\'' +
                ", uri='" + uri + '\'' +
                ", httpVer='" + httpVer + '\'' +
                ", expectType='" + expectType + '\'' +
                ", expectStatus='" + expectStatus + '\'' +
                ", expectContent='" + expectContent + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
